package com.ggbz.entity.dto;

import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

@Data
public class EvaluationCategoryUpdateRequest {
    @NotBlank(message = "分类名称不能为空")
    private String categoryName;

    private String categoryDescription;

    @DecimalMin(value = "0.0", message = "权重不能小于0")
    @DecimalMax(value = "1.0", message = "权重不能超过1")
    private Double weight;
}